package com.mapper;

import com.domain.Employee;
import com.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    int selectForCournt(QueryObject qo);

    List<Employee> selectLimitList(QueryObject qo);

    void insertRelation(@Param("employeeId") Long employeeId, @Param("roleId") Long roleId);
    void deleteRelation(@Param("employeeId") Long employeeId);

    Employee selectByUsernameAndPassword(@Param("username")String username, @Param("password")String password);
    void updatePasswordById(Employee employee);
}